package com.etc.emsys;

import com.etc.emsys.controller.emp.EmpController;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class StartApp extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception {

        FXMLLoader loader = new FXMLLoader(StartApp.class.getResource("view/emp/main.fxml"));
        Parent root = loader.load();
        // 手动调用init方法。
        EmpController controller = loader.getController();
        controller.init();
        Scene scene = new Scene(root, 600, 500);


        primaryStage.setScene(scene);
        primaryStage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
